package com.dalong.springboot;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "mybean")
public class MyBean {


    private String myName;
    private String nickName;
    private boolean age;
    private List<Object> lists;
    private Map<String,Object> maps;


    @Override
    public String toString() {
        return "MyBean{" +
                "myName='" + myName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", age=" + age +
                ", lists=" + lists +
                ", maps=" + maps +
                '}';
    }

    public String getMyName() {
        return myName;
    }

    public void setMyName(String myName) {
        this.myName = myName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public boolean isAge() {
        return age;
    }

    public void setAge(boolean age) {
        this.age = age;
    }

    public List<Object> getLists() {
        return lists;
    }

    public void setLists(List<Object> lists) {
        this.lists = lists;
    }

    public Map<String, Object> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, Object> maps) {
        this.maps = maps;
    }
}
